﻿#ifndef ABNORMALWIDGET_H
#define ABNORMALWIDGET_H

#include <QWidget>

namespace Ui {
class AbnormalWidget;
}

class QGridLayout;
class QSpacerItem;
class QToolButton;

class AbnormalWidget : public QWidget
{
    Q_OBJECT

public:
    explicit AbnormalWidget(QWidget *parent = nullptr);
    ~AbnormalWidget();

    void clearAllData();

    void addToolButton(const QVector<QString>& vecNames, const QString& objectName);

private:
    Ui::AbnormalWidget *ui;
    int _iColumn{4};
    QGridLayout *_gridLayout{ nullptr };
    QSpacerItem *_horizontalSpacer{nullptr};
    QSpacerItem *_verticalSpacer{nullptr};

    QVector<QToolButton*> _vecButton;
};

#endif // ABNORMALWIDGET_H
